pub fn dp_rec_mc(amount: u32) -> u32 {
    let currency_list = [100, 50, 30, 20, 10, 5, 2, 1];
    let mut rest = amount;
    let mut index = 0;
    let mut cnt = 0;
    while rest > 0 {
        let curr = currency_list[index];
        if curr <= rest {
            cnt += 1;
            rest -= curr;
        } else {
            index += 1
        }
    }
    cnt
}
